module.exports = {
  entry: {
    main: './main.js',
  },
  module: {
    // rules中的每一项是一个规则
    rules: [
      {
        test: /\.js$/,
        use: {
          loader: 'babel-loader',
        },
        exclude: '/node_module/',
      },
    ],
  },
  mode: 'development',
  optimization: {
    minimize: false,
  },
};
